:root {
	font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
	line-height: 1.5;
	font-weight: 400;

	color-scheme: light dark;
	color: rgba(255, 255, 255, 0.99);
	background-color: #242424;

	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	font-weight: 500;
	color: #646cff;
	text-decoration: inherit;
}
a:hover {
	color: #535bf2;
}

body {
	margin: 0;
	display: flex;
	place-items: center;
	min-width: 320px;
	min-height: 100vh;
}
/* 隐藏页面全局滚动条 */
html,
body {
	overflow-y: scroll; /* 确保支持滚动（必要） */
	-ms-overflow-style: none; /* IE/Edge */
	scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}

/* 如果 Vue 是挂在 #app 上，顺便加这个保险 */
#app::-webkit-scrollbar {
	display: none;
}
#app {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

h1 {
	font-size: 3.2em;
	line-height: 1.1;
}

button {
	border-radius: 8px;
	border: 1px solid transparent;
	padding: 0.6em 1.2em;
	font-size: 1em;
	font-weight: 500;
	font-family: inherit;
	background-color: #1a1a1a;
	cursor: pointer;
	transition: border-color 0.25s;
}
button:hover {
	border-color: #646cff;
}
button:focus,
button:focus-visible {
	outline: 4px auto -webkit-focus-ring-color;
}

.card {
	padding: 2em;
}

#app {
	max-width: 1280px;
	margin: 0 auto;
	padding: 2rem;
	text-align: center;
}

@media (prefers-color-scheme: light) {
	:root {
		color: #213547;
		background-color: #ffffff;
	}
	a:hover {
		color: #747bff;
	}
	button {
		background-color: #f9f9f9;
	}
}

/* body.layout-login {
  display: block !important;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body.layout-login #app {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
} */

body.layout-play #app {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* 全局覆盖 Element Plus el-dropdown 菜单 */
.el-dropdown-menu {
	background-color: #2c2c2c !important;
	box-shadow: 0 4px 10px rgba(134, 132, 132, 0.5) !important;
	border: none !important;
}

.el-dropdown-menu__item {
	color: #fff !important;
	font-size: 14px;
}

.el-dropdown-menu__item:hover {
	background-color: #444 !important;
	color: #e28e8e !important;
}

/* 1. 覆盖最外层 popper 容器的白边和阴影 */
.el-dropdown__popper {
	background-color: #2c2c2c !important;
	border: 1px solid #2c2c2c !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
	border-radius: 6px !important;
}
